from studys import mysqlutil

mysql_util = mysqlutil.MysqlUtil()
db = mysqlutil.sql_setting
param = '西安市'
sql_select = """SELECT cities.city FROM mydb.cities WHERE city = {}""".format(param)

result_one = mysql_util.fetch_one(sql_select)
print('返回一行数据:{}'.format(result_one))
result_many = mysql_util.fetch_many(sql_select, 1)
print('返回多行数据：{}'.format(result_many))
mysql_util.close()
